package com.ruoyi.member.api;

import com.ruoyi.member.api.domain.WxUser;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.member.api.facotry.RemoteWxUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 会员服务
 * 
 * @author ktjy
 */
@FeignClient(contextId = "remoteWxUserService", value = ServiceNameConstants.MEMBER_SERVICE, fallbackFactory = RemoteWxUserFallbackFactory.class)
public interface RemoteWxUserService
{
    // 查询所有会员信息
    @GetMapping(value = "/user/userlist")
    public R<List<WxUser>> userList(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
